﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Code5Systems.ClientFramework
{
	public enum LicenceMessageCodes
	{
		None = 0,

		// Non-Error Message Codes
		ExtensionAdded = 10000,
		ExtensionRemoved = 10001,
		LicenseActivated = 10002,
		LicenseActivatedEnterprise = 10003,
		LicenseDomainsUpdated = 10004,
		RefreshFromServerComplete = 10005,
		LicenseDeActivated = 10006,

		// Error Message Codes
		CannotActivateExtension = 20000,
		DomainsRequestExceedsCount = 20001,
		ExtensionAlreadyApplied = 20002,
		ExtensionNotApplied = 20003,
		LicenseAlreadyActivated = 20004,
		LicenseDetailMissing = 20005,
		LicenseDetailNotFound = 20006,
		LicensedOnAnotherInstance = 20007,
		LicenseMasterMissing = 20008,
		LicenseNotActive = 20009,
		RegKeyNotExtension = 20010,
		ProductLevelMismatch = 20011,

		UnknownError = 30000
	}

	public enum ProductLevel
	{
		[DescriptionAttribute("Unknown")]
		Unknown = 0,
		[DescriptionAttribute("NextGEN")]
		NextGEN = 3,
		[DescriptionAttribute("Responsive")]
		Responsive = 4
	}
}
